﻿//====================================================================
// Create by Daniel
// file： YCUserLog.cs
// project ：YunCMS
// Build time：2012-09-22
// modify:
// description:
// ===================================================================
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using YunCMS.Model;

namespace YunCMS.IDAL
{
    /// <summary>
    /// DAL YCUserLog Interface
    /// </summary>
    public interface IYCUserLogDAL
    {
		/// <summary>
        /// Insert a YCUserLog
        /// </summary>
        int Add(Model.YCUserLog model);


        /// <summary>
        /// delete a YCUserLog
        /// </summary>
        int Delete(long id);

        /// <summary>
        /// get the max YCUserLog
        ///</summary>
        //int GetMaxId();

        /// <summary>
        /// IsExists?
        /// </summary>
        bool IsExist(long id);

        /// <summary>
        /// Get one YCUserLog
        /// </summary>
        Model.YCUserLog GetYCUserLog(long id);

        /// <summary>
        /// Get YCUserLog List
        /// </summary>
        IList<Model.YCUserLog> GetList(string strSql);

        IList<YCUserLog> GetList(string name, DateTime? start, DateTime? end, int pageSize, int pageCurrent);

        int GetCount(string name, DateTime? start, DateTime? end);
      
    }
}



